<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width, user-scalable=no, 
			initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
		<link rel="stylesheet" href="assets/mui/css/mui.min.css" />
		<link rel="stylesheet" href="css/category.css" />
		<link rel="stylesheet" href="assets/fontAwesome/css/font-awesome.min.css" />
		<!--zepoto是jQuery的精简版，fx.js是用来做动画的，touch.js是需要事件时引入，
			zepto.min.js是提供基础选择器的，selector.js是扩展的选择器，-->
			<!--引入模板引擎template，
			用来帮我们将数据和HTML拼接好，将拼接好的结果，返回给我们，具体看category.js和HTML的配合
		-->
		<script src="assets/zepto/zepto.min.js"></script>
		<script src="assets/artTemplate/template-native.js"></script>
		
		<script src="js/category.js"></script>	
		<script src="js/public.js"></script>
		<script src="assets/mui/js/mui.min.js"></script>	
		
			
	</head>
	<body>
		<header class="mui-bar mui-bar-nav myHeader">			
			<h1 class="mui-title">乐淘云馆</h1>
			<!--mui-pull-right与bootstrap用法一样，加个mui前缀即可-->
			
		</header>
		<nav class="mui-bar mui-bar-tab footer my-foot">
			<a class="mui-tab-item " href="index.html">
				<span class="mui-icon mui-icon-home"></span>
				<span class="mui-tab-label">首页</span>
			</a>
			<a class="mui-tab-item mui-active" href="category.html">
				<span class="mui-icon mui-icon-bars"></span>
				<span class="mui-tab-label">分类</span>
			</a>
			<a class="mui-tab-item " href="cart.html">
				<span class="mui-icon fa fa-shopping-cart"></span>
				<span class="mui-tab-label">购物车</span>
			</a>
			<a class="mui-tab-item " href="user.html">
				<span class="mui-icon mui-icon-person"></span>
				<span class="mui-tab-label">会员中心</span>
			</a>
		</nav>
		<!--网页内容区-->
		<div class="my-content">
			<!--左区域-->
			<div class="left">
				<div class="mui-scroll-wrapper">
					<div class="mui-scroll">
						<div class="category-link" id="links">
							
						</div>	
					</div>
				</div>
			</div>
			<div class="right">
			<!--右区域-->
				<div class="mui-scroll-wrapper">
					<div class="mui-scroll">
						<div class="bran-list">
							<!--mui-clearfix用于清除浮动，解决父级高度坍塌的问题-->
							<ul class="mui-clearfix" id="brand-second">
								
								
							</ul>
						</div>
					</div>
				</div>
			</div>
			
		</div>
		<script id="category-first" type="text/template">
			<% for(var i=0;i<result.length;i++){ %>
				<!--<%=result[i].categoryName %> 这个等于和百分号之间不能有空格，不然会报错-->
				<a href="#" data-id="<%=result[i].id %>" class="brand-click"><%=result[i].categoryName %></a> 
			<% } %>
		</script>
		<script id="category-second" type="text/template">
			<% for( var i = 0;i<result.length;i++){ %>
				<li>
					<a href=""><img src="<%=result[i].brandLogo%>" alt="" /></a>
					<p><%=result[i].brandName%></p>
				</li>
			<% } %>
			<% if(!result.length){ %>
				<div class="category-no">暂无数据</div>
			<% } %>
		</script>
	</body>
</html>













